﻿using Dapper.Contrib.Extensions;

namespace Tauren.Form.Entity.Model
{
    [Table("form_tableinfo")]
    public class Form_TableInfo : EntityBase
    {
        [Key]
        public virtual int AutoId { get; set; }

        /// <summary>
        /// 抛出到外键表做外键的字段
        /// </summary>
        public virtual string ForeignKey { get; set; }

        /// <summary>
        /// 表名
        /// </summary>
        public virtual string TableCode { get; set; }



        /// <summary>
        /// 启用？
        /// </summary>
        public virtual bool Enable { get; set; }

        /// <summary>
        /// 顺序
        /// </summary>
        public virtual double Sequence { get; set; }

        /// <summary>
        /// 判断是否删除
        /// </summary>
        public virtual bool HaveDelete { get; set; }

        /// <summary>
        /// /由于流程对应的表名
        /// </summary>

        public virtual string FlowTableCode { get; set; }
    }
    public class Form_TableInfoExt : Form_TableInfo
    {
        /// <summary>
        /// 表名称
        /// </summary>
        public virtual string TableName { get; set; }


        /// <summary>
        /// 英文名
        /// </summary>
        public virtual string TableENName { get; set; }
    }
}
